package com.simple.editor.callback;

/**
 * Created with IntelliJ IDEA.
 * User: vsoroka
 * Date: 11.06.13
 * Time: 9:35
 * To change this template use File | Settings | File Templates.
 */
public interface Callback {
    /**
     * Called when the processing of the message exchange is complete
     */
    void onComplete();

    /**
     * Called when the processing of the message exchange has failed for some reason.
     *
     * @param ex failure details
     */
    void onFailure(Exception ex);

    /**
     * Called when the processing of the message is started
     */
    void onStart();
}
